using System;
using System.Collections.Generic;

namespace ConsoleApplication2.Models
{
    public partial class Batchttl
    {
        public Batchttl()
        {
            this.Apbatches = new List<Apbatch>();
            this.Apbtchdts = new List<Apbtchdt>();
            this.ApPaydets = new List<ApPaydet>();
            this.ApPymts = new List<ApPymt>();
            this.Arbatches = new List<Arbatch>();
            this.Arbtchdts = new List<Arbtchdt>();
            this.Batchdets = new List<Batchdet>();
            this.Paydets = new List<Paydet>();
            this.Payments = new List<Payment>();
            this.Ps = new List<P>();
            this.Ps1 = new List<P>();
        }

        public string BATCH { get; set; }
        public Nullable<double> TOTAL { get; set; }
        public Nullable<double> TOTALDOL { get; set; }
        public Nullable<double> DEBITS { get; set; }
        public Nullable<double> DEBITSDOL { get; set; }
        public Nullable<double> CREDITS { get; set; }
        public Nullable<double> CREDITSDOL { get; set; }
        public System.DateTime DATE { get; set; }
        public string BATCHTYPE { get; set; }
        public string PERIOD { get; set; }
        public Nullable<bool> CLOSING { get; set; }
        public Nullable<bool> PRNJRNL { get; set; }
        public Nullable<short> CURRENCY { get; set; }
        public string SOURCE { get; set; }
        public string SUBSOURCE { get; set; }
        public string MAINSOURCE { get; set; }
        public Nullable<short> CSTCTRID { get; set; }
        public string ACCESIBLEFROM { get; set; }
        public Nullable<bool> CORRECTIVE { get; set; }
        public string File_Primary_Key { get; set; }
        public Nullable<int> USERID { get; set; }
        public string DESC { get; set; }
        public bool RECURRING { get; set; }
        public string SUBDATABASE { get; set; }
        public int Voucher { get; set; }
        public int BatchID { get; set; }
        public string NewBatch { get; set; }
        public string Sbatch { get; set; }
        public string Classification { get; set; }
        public Nullable<int> TPI_BATCHTTL_Log { get; set; }
        public Nullable<bool> BATCHTTL_Posted { get; set; }
        public string BATCHTTL_Approval { get; set; }
        public Nullable<bool> BATCHTTL_Selected { get; set; }
        public Nullable<int> BATCHTTL_Category { get; set; }
        public Nullable<bool> BatchTTL_Reverse { get; set; }
        public string BatchTTL_SourceBatch { get; set; }
        public string Reverse_DocumentType { get; set; }
        public string Reverse_DocumentID { get; set; }
        public Nullable<System.DateTime> BATCHTTL_CreatedON { get; set; }
        public virtual ICollection<Apbatch> Apbatches { get; set; }
        public virtual ICollection<Apbtchdt> Apbtchdts { get; set; }
        public virtual ICollection<ApPaydet> ApPaydets { get; set; }
        public virtual ICollection<ApPymt> ApPymts { get; set; }
        public virtual ICollection<Arbatch> Arbatches { get; set; }
        public virtual ICollection<Arbtchdt> Arbtchdts { get; set; }
        public virtual ICollection<Batchdet> Batchdets { get; set; }
        public virtual Cstctr Cstctr { get; set; }
        public virtual Name Name { get; set; }
        public virtual Period Period1 { get; set; }
        public virtual ICollection<Paydet> Paydets { get; set; }
        public virtual ICollection<Payment> Payments { get; set; }
        public virtual ICollection<P> Ps { get; set; }
        public virtual ICollection<P> Ps1 { get; set; }
    }
}
